package com.mallcloud.mall.common.data.mybatis;

/**
 *
 */
//@Configuration
//@RequiredArgsConstructor
//@ConditionalOnBean(DataSource.class)
//@AutoConfigureAfter(DataSourceAutoConfiguration.class)
//@EnableConfigurationProperties(ToOracleProperties.class)
//public class MybatisConfiguration implements WebMvcConfigurer {
//
//	private final ToOracleProperties toOracleProperties;
//
//	/**
//	 * mybatis拦截器配置
//	 * @param sqlSessionFactory
//	 * @return
//	 */
//	@Bean
//	@ConditionalOnProperty(name = "mall.to-oracle.enabled")
//	public String mybatisInterceptor(SqlSessionFactory sqlSessionFactory) {
//		sqlSessionFactory.getConfiguration().addInterceptor(new CharacterEncodingInterceptor(toOracleProperties));
//		return "interceptor";
//	}
//}
